Repository navigation
fix: normalize Windows ignore glob paths - #612
Open
Shubham-Padkonde wants to merge 2 commits into
Open
Shubham-Padkonde wants to merge 2 commits into
Shubham-Padkonde wants to merge 2 commits into
Conversation
Shubham-Padkonde
requested review from
a team,
icyJoseph,
ijjk and
styfle
as code owners
September 17, 2026 01:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #445.
On Windows, resolving an ignore pattern such as
ignored/**producesignored\**. Picomatch interprets the backslash in the pattern as an escape, so matching dependencies remain in the trace. Convert resolved patterns and candidate paths to forward slashes only at the glob-matching boundary. The existing outside-base check, callback arguments and returned file paths retain their native-path behavior.Add seven filesystem-based tracing cases for string/array globs, native and absolute patterns, exact paths, callback inputs and entry-point retention. Four of the cases fail on the original Windows implementation and pass with this change. This does not overlap #610's package-resolution changes.
Validation:
pnpm-symlinksandrequire-symlink-subdir) also fail with the original source in this checkout, whosecore.symlinksis false. They are not introduced by this change.Dependencies were installed from the frozen lockfile with the repository-pinned pnpm 10.33.0 and install scripts disabled. The external-service integration suite was not run. Prepared with Codex assistance; the before/after tests were run locally.